//code from qscite-4.0
#ifndef FINDTEXT_H_
#define FINDTEXT_H_

#include "ui_dlgFindText.h"
#include <QDialog>
#include <QSettings>
#include <Qsci/qsciscintilla.h>
#include "Config.h"
class dlgFindText: public QDialog, protected Ui_dlgFindText 
{
  
  Q_OBJECT
public:
  dlgFindText(QWidget* parent);
  void SetTextEdit(QsciScintilla* TextEdit);
  //QWidget* parent;
public slots:
  void FindNext(void);
  void FindPrevious(void); 	
   	
private slots:
  void doSearch();
  void onTextChange(QString text);
private:
    QsciScintilla* TextEdit;
    QString expr;
    bool regex ;
    bool caseSens ;
    bool wholeWord ;
    bool forward ;	
    int Up;
    int Down;
    bool OnChangeTextEdit;
};
  
#endif /*FINDTEXT_H_*/
